package cn.pa4j.service;

import cn.pa4j.mapper.H2Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * Created by 060016 on 2019-3-15.
 */
@Component
public class InitService implements ApplicationRunner {

    @Autowired
    H2Mapper mapper;

    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
        mapper.creatLive();
    }
}
